package cn.cqie.attendance.manager.dao;

import cn.cqie.attendance.manager.pojo.AdminGroupHomework;
import cn.cqie.attendance.manager.pojo.AdminGroupScore;
import cn.cqie.attendance.manager.pojo.AdminStudentHomework;
import cn.cqie.attendance.manager.pojo.AdminStudentScore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author king james
 * @create 2021-07-07-{TIME}
 */
@Mapper
public interface AdminScoreDao {
    /**
     * 组合查询学生综合得分详情
     * @param studentScore 所有学生综合得分详情
     * @return
     */
    List<AdminStudentScore> queryAllStudentScoreInfo(@Param("studentScore") AdminStudentScore studentScore);

    /**
     * 根据id查询某个学生的得分详情
     * @param stuId 学id
     * @return
     */
    List<AdminStudentScore> queryStudentScoreById(@Param("stuId") Integer stuId,@Param("courseId") Integer courseId);

    /**
     * 根据学生id查询学生所有作业完成详情
     * @param stuId 学生id
     * @param courseId 课程id
     * @return
     */
    List<AdminStudentHomework> queryAllStudentHomeworkInfoById(@Param("stuId") Integer stuId,@Param("courseId")Integer courseId);

    /**
     * 通过作业id查询学生某次作业完成详情
     * @param homeworkId
     * @return
     */
    List<AdminStudentHomework> queryStudentHomeworkInfoById(@Param("homeworkId") Integer homeworkId);

    /**
     *查询所有小组得分信息
     * @param groupScore  组合条件
     * @return
     */
    List<AdminGroupScore> queryAllGroupScoreInfo(@Param("groupScore") AdminGroupScore groupScore);


    /**
     * 根据id查询某个小组得分详情
     * @param groupId 小组id
     * @return
     */
    List<AdminGroupScore> queryGroupScoreInfoById(@Param("groupId")Integer groupId,@Param("groupCourseId")Integer groupCourseId);

    /**
     * 根据小组id查询小组所有作业完成情况
     * @param groupId 小组id
     * @param groupCourseId 课程id
     * @return
     */
    List<AdminGroupHomework> queryAllGroupHomeworkInfoById(@Param("groupId")Integer groupId,@Param("groupCourseId")Integer groupCourseId);

    /**
     * 根据作业id查询小组某次作业详情
     * @param homeworkId
     * @return
     */
    List<AdminGroupHomework> queryGroupHomeworkInfoById(@Param("homeworkId") Integer homeworkId);






}
